<div class="u_cat">
	<div class="u_cat_head_strip"></div>
	<div class="u_cat_head"><a href="<?php echo Yii::app()->createUrl('people/index', array('profile'=>$_GET['id'], 'tab'=>'onlineFriends'));?>"><em>Друзья онлайн</em><span><?php echo count($friends); ?></span></a></div>
	<div class="u_cat_list">
		<?php foreach ($friends as $key => $friend){  ?>
			<div class="u_friend">
				<?php if($friend->friend_info->avatar_info){ ?>
					<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$friend->friend_info->id));?>" class="u_friend_pic">
						<?php echo $this->material_image(0, $friend->friend_info->avatar_info->name, '50', 'photos/'. $friend->friend_info->id . '/' . 0); ?>
					</a>
				<?php }else{ ?>
					<?php echo $this->material_image(0, 'noimage.gif', '50', ''); ?>
				<?php } ?>
				<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$friend->friend_info->id));?>"><?php echo CHtml::encode($friend->friend_info->full_name); ?></a>
			</div>
		<?php if($key==5) break;} ?>
	</div>
</div>					